package com.taotao.wjspringboot.controller;


import com.taotao.wjspringboot.entity.UserEntity;
import com.taotao.wjspringboot.service.KtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.WebApplicationInitializer;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author wangjin
 * @title: IndexController
 * @projectName wj-springboot
 * @description:
 * @date 2021/10/23 13:56
 */
@RestController
public class IndexController {
    @Resource
    private KtService ktService;

    @ResponseBody
    @RequestMapping("/index")
    public String index() {
        return "122";
    }

    @RequestMapping("/addUser")
    public UserEntity addUser() {
        return ktService.addUser();
    }
}
